# cmake needs this line 要求的最低版本
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

# Define project name 定义工程名
PROJECT(gesture)

AUX_SOURCE_DIRECTORY(. SRC_LIST)
MESSAGE(STATUS ${SRC_LIST})

# Find OpenCV, you may need to set OpenCV_DIR variable
# to the absolute path to the directory containing OpenCVConfig.cmake file
# via the command line or GUI 自动查找库
find_package(OpenCV REQUIRED)

# Declare the executable target built from your sources 声明可执行目标文件及源文件
ADD_EXECUTABLE(gesture ${SRC_LIST})	# 目标文件，源文件0,源文件1,...

# Link your application with OpenCV libraries 将目标文件与库链接
TARGET_LINK_LIBRARIES(gesture ${OpenCV_LIBS})	